package com.dgty.dg_common.base

import com.alibaba.android.arouter.launcher.ARouter
import com.blankj.utilcode.util.LogUtils
import com.blankj.utilcode.util.ToastUtils
import com.dgty.dg_common.network.BaseResp
import com.dgty.dg_common.network.RespStateData
import com.dgty.dg_common.util.Constants
import okhttp3.MediaType.Companion.toMediaTypeOrNull
import okhttp3.RequestBody
import retrofit2.HttpException
import java.net.ConnectException
import java.net.UnknownHostException

/**
 * Title: BaseRepository.kt
 * Description:数据仓
 * Created DateTime: 2023-02-07
 * Created by xxl.
 */
open class BaseRepository {

    val MEDIA_JSON = "application/json; charset=utf-8".toMediaTypeOrNull()
    fun getRequestParam(json:String): RequestBody {
        var requestBody: RequestBody = RequestBody.create(
            MEDIA_JSON,
            json
        )
        return requestBody
    }
}